import request from '@/utils/request'

// 获取商品列表
export function dataStat(query) {
  return request({
    url: '/data/homeAnalysis/dataStat',
    method: 'get',
    params: query
  })
}
// 商品销售渠道分布
export function listByPlatform(query) {
  return request({
    url: '/data/homeAnalysis/listByPlatform',
    method: 'get',
    params: query
  })
}
// 商品行业分类排行
export function goodsCategoryRank(query) {
  return request({
    url: '/data/homeAnalysis/goodsCategoryRank',
    method: 'get',
    params: query
  })
}
// 商品来源分布
export function statGoodsSource(query) {
  return request({
    url: '/data/homeAnalysis/statGoodsSource',
    method: 'get',
    params: query
  })
}
// 商品销量分布
export function statOrderGoodsSource(query) {
  return request({
    url: '/data/homeAnalysis/statOrderGoodsSource',
    method: 'get',
    params: query
  })
}
// 商品排行
export function goodsRank(query) {
  return request({
    url: '/data/homeAnalysis/goodsRank',
    method: 'get',
    params: query
  })
}
// 主播排行
export function anchorRank(query) {
  return request({
    url: '/data/homeAnalysis/anchorRank',
    method: 'get',
    params: query
  })
}
// 10w+/100w+业绩主播
export function rankNewAnchor(query) {
  return request({
    url: '/data/homeAnalysis/rankNewAnchor',
    method: 'get',
    params: query
  })
}
